package com.myblog.services;

import com.baomidou.mybatisplus.extension.service.IService;
import com.myblog.domain.GlobalResponse;
import com.myblog.domain.dto.AddRoleDto;
import com.myblog.domain.dto.RoleDto;
import com.myblog.domain.dto.UpdateRoleDto;
import com.myblog.domain.entity.Role;

import java.util.List;


/**
* @author Administrator
* @description 针对表【sys_role(角色信息表)】的数据库操作Service
* @createDate 2022-10-20 20:06:55
*/
public interface RoleService extends IService<Role> {

    List<String> getRoleList(Long id);

    GlobalResponse saveRole(AddRoleDto roleDto);

    GlobalResponse getList(Integer pageNum, Integer pageSize, String roleName, String status);

    GlobalResponse changeStatus(RoleDto roleDto);

    GlobalResponse updateRole(UpdateRoleDto updateRoleDto);

    GlobalResponse deleteRole(Long id);

    GlobalResponse getAllRole();
}
